package cn.org.donald.pojo.entity;

import java.util.Date;

import cn.org.donald.framework.pojo.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author Donald
 * @since 2020-11-16
 */
@ApiModel(value="Login对象", description="")
public class Login extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "当前登录ip")
    private String ipLogin;

    @ApiModelProperty(value = "上次登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtLastLogin;

    @ApiModelProperty(value = "上次登录ip")
    private String ipLastLogin;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getIpLogin() {
        return ipLogin;
    }

    public void setIpLogin(String ipLogin) {
        this.ipLogin = ipLogin;
    }

    public Date getGmtLastLogin() {
        return gmtLastLogin;
    }

    public void setGmtLastLogin(Date gmtLastLogin) {
        this.gmtLastLogin = gmtLastLogin;
    }

    public String getIpLastLogin() {
        return ipLastLogin;
    }

    public void setIpLastLogin(String ipLastLogin) {
        this.ipLastLogin = ipLastLogin;
    }

    @Override
    public String toString() {
        return "Login{" +
        "ipLogin=" + ipLogin +
        ", gmtLastLogin=" + gmtLastLogin +
        ", ipLastLogin=" + ipLastLogin +
        "}";
    }
}
